package com.module.ad_gromore;

import android.content.Context;

import com.bytedance.msdk.api.v2.GMAdConfig;
import com.bytedance.msdk.api.v2.GMAdConstant;
import com.bytedance.msdk.api.v2.GMMediationAdSdk;
import com.bytedance.msdk.api.v2.GMPangleOption;
import com.module.ad_gromore.BuildConfig;

public class AdGromoreInit {
    public static void init(Context context, String appId, String name) {
        GMAdConfig adConfig = new GMAdConfig.Builder()
                .setAppId(appId)
                .setAppName(name)
                .setDebug(BuildConfig.DEBUG)
                .setPangleOption(new GMPangleOption.Builder()
                        .setTitleBarTheme(GMAdConstant.TITLE_BAR_THEME_DARK)
                        .build())
//                .setCustomLocalConfig(jsonObject)//本地缓存配置说明
                .build();
        GMMediationAdSdk.initialize(context, adConfig);
    }
}
